import myAsync from './myAsync.mjs'
import myAwait from './myAwait.mjs'

function foo(x){
    return x+1
}

let obj = {};
let async_foo = myAsync(foo)
let promise = async_foo(1)
myAwait(obj, promise)
setTimeout(
    _=>console.log(obj)
)